import api from './request_api'

export const getproducts = (user: any) => api.get(`/products/?page=${user.page}&limit=${user.limit}&keyword=${user.keyword}&sort=%2Bid`)

export const editproducts = (user: any, id: any) => api.put(`/products/${id}`, user)

export const addproducts = (user: any) => api.post(`/products`, user)

export const getwoproducts = (id: any) => api.get(`/products/${id}`)
